home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v9n20.arc
/
DRVRDY.LST
< prev
next >
Wrap
File List
|
1990-10-29
|
2KB
|
38 lines
0100 53 PUSH BX
0101 58 POP AX ;Set AX to zero
0102 354041 XOR AX,4140
0105 354040 XOR AX,4040 ;Set AX to 100
0108 50 PUSH AX
0109 5E POP SI ;Set SI to 100
010A 53 PUSH BX
010B 58 POP AX ;Set AX to zero
010C 3470 XOR AL,70
010E 284438 SUB [SI+38],AL ;Code at 138 becomes MOV AH,4C
0111 28443A SUB [SI+3A],AL ;Code at 13A becomes INT 21
0114 284435 SUB [SI+35],AL ;Code at 135 becomes INT 75
0117 2450 AND AL,50
0119 284436 SUB [SI+36],AL ;Code at 135 becomes INT 25
011C 50 PUSH AX
011D 5E POP SI ;Set SI to 50
011E 53 PUSH BX
011F 58 POP AX ;Set AX to 0
0120 324432 XOR AL,[SI+32] ;Get first char of command line
0123 245F AND AL,5F ;Capitalize it
0125 2C41 SUB AL,41 ;Set to 0 for A:, 1 for B:, etc
0127 50 PUSH AX ;Save the drive number
0128 53 PUSH BX
0129 59 POP CX
012A 41 INC CX ;Set CX to 1
012B 53 PUSH BX
012C 5A POP DX ;Set DX to 0
012D 53 PUSH BX
012E 58 POP AX ;Set AX to 0
012F 352121 XOR AX,2121 ;2121 is lowest number not using...
0132 50 PUSH AX ;... bytes 20h or below
0133 5B POP BX ;Set BX to 2121
0134 58 POP AX ;Retrieve the drive number
0135 3D7559 CMP AX,5975 ;(mod) Call absolute disk read
0138 244C AND AL,4C ;(mod) Set up for errorlevel
013A 3D210D CMP AX,0D21 ;(mod) Exit with errorlevel